<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<html>
<head>
    <title>Title</title>
    <style type="text/css">
    	.control-label {
    		width: 80px;
    	}
    </style>
</head>
<body>
    <div class="bjui-pageContent">
        <s:url value="/admin/borrow/create" var="action"/>
        <form:form action="${action}" modelAttribute="borrowInfo" data-toggle="validate" data-alertmsg="false">
            <table class="table table-condensed table-hover" style="width: 100%;">
                <tr>
                    <td>
                        <form:label path="name" cssClass="control-label">借款标名称</form:label>
                        <form:input path="name"/>
                    </td>
                    <td>
                        <form:label path="totalMoney" cssClass="control-label">借款金额</form:label>
                        <form:input path="totalMoney"/>
                    </td>
                    <td>
                        <form:label path="borrower.id" cssClass="control-label">借款人</form:label>
                        <form:select path="borrower.id" data-toggle="selectpicker">
                            <form:option value="1">否</form:option>
                            <form:option value="2">是</form:option>
                        </form:select>
                    </td>
                </tr>
                <tr>
                    <td>
                        <form:label path="periodico" cssClass="control-label">周期</form:label>
                        <form:input path="periodico"/>
                    </td>
                    <td>
                        <form:label path="periodicUnit" cssClass="control-label">周期单位</form:label>
                        <form:select path="periodicUnit" data-toggle="selectpicker">
                            <form:option value="1">天</form:option>
                            <form:option value="2">月</form:option>
                        </form:select>
                    </td>
                    <td>
                        <form:label path="type" cssClass="control-label">借款标类型:</form:label>
                        <form:select path="type" data-toggle="selectpicker" items="${borrowTypes}">
                        </form:select>
                    </td>
                </tr>
                <tr>
                    <td>
                        <form:label path="annualizedReturn" cssClass="control-label">年化收益率:</form:label>
                        <form:input path="annualizedReturn"/>
                    </td>
                    <td>
                        <form:label path="minTenderMoney" cssClass="control-label">最小投资金额:</form:label>
                        <form:input path="minTenderMoney"/>
                    </td>
                    <td>
                        <form:label path="maxTenderMoney" cssClass="control-label">最大投资金额:</form:label>
                        <form:input path="maxTenderMoney"/>
                    </td>
                </tr>
                <tr>
                    <td>
                    	<form:label path="autoLoan" cssClass="control-label">是否自动放款:</form:label>
                        <form:checkbox path="autoLoan" data-toggle="icheck"/>
                    </td>
                    <td>
                    	<form:label path="autoTender" cssClass="control-label">自动投标</form:label>
                        <form:checkbox path="autoTender" data-toggle="icheck"/>
                    </td>
                    <td>
                        <form:label path="novice" cssClass="control-label">新手标</form:label>
                        <form:checkbox path="novice" data-toggle="icheck"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                    <form:label path="createDescription" cssClass="control-label">创建者描述</form:label>
                    <form:textarea path="createDescription"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                    	<form:label path="borrowDescription.introduce" cssClass="control-label">项目介绍</form:label>
                    	<div style="display: inline-block;vertical-align: middle;">
                        <form:textarea path="borrowDescription.introduce" data-toggle="kindeditor"/>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                    	<form:label path="borrowDescription.control" cssClass="control-label">风控信息</form:label>
                    	<div style="display: inline-block;vertical-align: middle;">
                        <form:textarea path="borrowDescription.control" data-toggle="kindeditor" data-items="fontname"/>
                        </div>
                    </td>
                </tr>
            </table>
        </form:form>
    </div>
    <div class="bjui-pageFooter">
        <ul>
            <li><button type="button" class="btn-close" data-icon="close">关闭</button> </li>
            <li><button type="submit" class="btn-default" data-icon="save">创建</button></li>
        </ul>
    </div>
</body>
</html>
